#ifndef _UTILS_H_
#define _UTILS_H_

#define _XOPEN_SOURCE

#include <malloc.h>
#include <string.h>
#include <time.h>

char * append_string(char * dest, const char * src);
int    is_keyword(const char * word, const char * keywords[]);

time_t str_to_time(const char * source,
                   int left_chop, int right_chop);

int str_to_completion(const char * completion);

extern char * __class_keywords[];

extern char __full_time_format[];
extern char __date_time_format[];
extern int  __time_criteria;

#endif /* _UTILS_H_ */
